package io.gitee.yth.design.pattern.test.core.pattern.behavioral.memento;

/**
 * @author yth
 * @since 2023-05-01-21:07
 */
public class PositionMemento implements Memento {
    private int x;
    private int y;

    public PositionMemento(int x, int y) {
        this.x = x;
        this.y = y;
    }

    void setX(int x) {
        this.x = x;
    }

    void setY(int y) {
        this.y = y;
    }

    int getX() {
        return x;
    }

    int getY() {
        return y;
    }
}
